package map;

public class MapLayer {
	
	int width;
	int height;
	
	MapObject[][] objects;
	MapTexture[][] textures;
	
	public MapLayer(int width, int height){
		this.width = width;
		this.height = height;
		this.objects = new MapObject[width][height];
		this.textures = new MapTexture[width][height];
	}
	
	public void setObject(int x, int y, MapObject object){
		objects[x][y] = object;
	}
	
	public void setTexture(int x, int y, MapTexture texture){
		textures[x][y] = texture;
	}

	public MapObject getObject(int x, int y){
		return objects[x][y];
	}
	
	public MapTexture getTexture(int x, int y){
		return textures[x][y];
	}
	
	public MapObject[][] getObjects() {
		return objects;
	}

	public void setObjects(MapObject[][] objects) {
		this.objects = objects;
	}

	public MapTexture[][] getTextures() {
		return textures;
	}

	public void setTextures(MapTexture[][] textures) {
		this.textures = textures;
	}

	public int getWidth() {
		return width;
	}

	public int getHeight() {
		return height;
	}
	
	

}
